Trees | Indices | Toggle frames |
---|
Sequence of images with timing information.
If no frames of the animation have a duration of None, the animation loops continuously; otherwise the animation stops at the first frame with duration of None.
__init__(self,
frames)
Create an animation directly from a list of frames.
|
|
add_to_texture_bin(self,
bin)
Add the images of the animation to a TextureBin.
|
|
Animation |
get_transform(self,
flip_x=False,
flip_y=False,
rotate=0)
Create a copy of this animation applying a simple transformation.
|
float |
get_duration(self)
Get the total duration of the animation in seconds.
|
int |
get_max_width(self)
Get the maximum image frame width.
|
int |
get_max_height(self)
Get the maximum image frame height.
|
Animation |
from_image_sequence(cls,
sequence,
period,
loop=True)
Create an animation from a list of images and a constant framerate.
|
list of AnimationFrame |
frames
The frames that make up the animation.
|
Add the images of the animation to a TextureBin.
The animation frames are modified in-place to refer to the texture bin regions.
Create a copy of this animation applying a simple transformation.
The transformation is applied around the image's anchor point of each frame. The texture data is shared between the original animation and the transformed animation.
Get the maximum image frame width.
This method is useful for determining texture space requirements: due to the use of anchor_x the actual required playback area may be larger.
Get the maximum image frame height.
This method is useful for determining texture space requirements: due to the use of anchor_y the actual required playback area may be larger.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:18 2009 | http://epydoc.sourceforge.net |